#include "stdlib.h"
#include "stdio.h"
#include "string.h"

//回忆指针基础

//演示间接赋值
int main()
{
	int a = 0;
	int *p = NULL; //

	p = &a;
	
	*p = 11; //间接赋值 *p就像一把钥匙，通过指针打开一扇门，去修改门后面的内存空间

	printf("sizeof(int *):%d, sizeof(p):%d\n", sizeof(int *), sizeof(p));
	printf("*p:%d\n", a);


	return 0;
}
